package com.cp.support.gray;

import com.cp.util.SceneTag;
import com.cp.util.SystemThreadLocal;

/**
 * 默认的获取gray标记
 *
 * @author YangXiaoLong
 * 2022/11/2 10:58
 */
public class DefaultGrayRibbonRule extends AbstractGrayRibbonRule {
    @Override
    public boolean getGrayTag() {
        Object o = SystemThreadLocal.get(SceneTag.GRAY.getTag());
        if (o == null) {
            return false;
        }
        return (Boolean) o;
    }
}
